﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TemplateTesting.aspx.cs" Inherits="TimePickerTesting.TemplateTesting" %>

<%@ Register assembly="TimePicker" namespace="MKB.TimePicker" tagprefix="MKB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>.NET TimePicker Control</title>
    <style type="text/css">
        body
        {
            background-color: whitesmoke;
            font-family: arial;
            font-size: 10pt;
        }
        
        td
        {
            font-family: arial;
            font-size: 10pt;
        }
        
        .codebehind
        {
        	font-size:8pt;
        	color:Blue;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
    <div>
        <h2>.NET Time Picker Control</h2>
        I wrote this control from a need for my wife (a Photographer) to have a method to schedule appointments on her website.
        There might be some other solutions but to me, this was the most user friendly idea I came 
        up with for scheduling the time of the appointment. <br /><br />
        I've got a todo list for it such as
        allowing military format, and making it databindable. I will release new versions here as I get them done. 
        <br /><br />
        <span style="font-size:14pt;">New! <A href="http://208.101.58.223:8000/" target="_blank">TimePicker Documentation</A></span>
        <br /><br />
        You can see a sample of what is does below:<br /><br />
        
        Formview Template:
        <asp:FormView ID="FormView1" runat="server" DefaultMode="ReadOnly">
            <ItemTemplate><%--<MKB:TimeSelector ID="TimeSelector30" LoadZeroSecondsInitially="true" runat="server" ReadOnly="True" />--%></ItemTemplate>
            <EditItemTemplate><MKB:TimeSelector ID="TimeSelector40" LoadZeroSecondsInitially="true" runat="server" /></EditItemTemplate>
            <InsertItemTemplate><MKB:TimeSelector ID="TimeSelector50" LoadZeroSecondsInitially="true" runat="server" /></InsertItemTemplate>
        </asp:FormView>
        <br /><br />
        <asp:Button ID="btnSwitchToItemViewMode"
            runat="server" Text="Switch To Item View Mode" 
            onclick="btnSwitchToItemViewMode_Click" />
        <asp:Button ID="btnSwitchToEditMode" runat="server" Text="Switch To Edit Mode" 
            onclick="btnSwitchToEditMode_Click" />
        <asp:Button ID="btnSwitchToInsertMode" runat="server" 
            Text="Switch To Insert Mode" onclick="btnSwitchToInsertMode_Click" />
        <br /><br />
        
        
        
        
        <br /><br />
        Download the control <a href="TimePicker.rar">here</a>.
    
    </div>
    
    
    </div>
    </form>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-846544-6");
pageTracker._trackPageview();
} catch(err) {}</script></body>
</html>
